#ifndef TABVIEW_HPP
#define TABVIEW_HPP

#include "content/bindable.hpp"
#include "content/data_provider.hpp"
#include "ui/ui_item.hpp"

#include <utility>
#include <vector>

class tab_view : public ui_item {
public:
    using ui_item::ui_item;

    void bind(bindable_base* data) override;
protected:
    void init_content(const xml_node &node) override;
    void draw_self() override;
    void draw_children() override;

private:
    std::vector<std::pair<std::string, data_provider_p>> tabs_;
    bool open_; 
};

#endif /* TABVIEW_HPP */
